package com.fengchao.api.dao.trc;

import com.fengchao.api.dao.BaseMapper;
import com.fengchao.model.trc.TrcSearchKeyWord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by wangnian on 2016/7/1.
 */
public interface TrcSearchKeyWordMapper extends BaseMapper<TrcSearchKeyWord> {

    /**
     * 获取热门搜索
     *
     * @param start
     * @param count
     * @return
     */
    List<TrcSearchKeyWord> findTrcSearchKeyWordList(@Param("start") Integer start, @Param("count") Integer count);

    /**
     * 根据keyWord查询搜索
     *
     * @param keyWord
     * @return
     */
    TrcSearchKeyWord findTrcSearchKeyWordBykeyWord(String keyWord);
}
